export default class Button {
    constructor() {
      this.plugin = {
        name: "土块按钮",
        dsc: "土块插件按钮",
        priority: 101,
        rule: [
            {
              reg: '^#?土块帮助',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?画图帮助',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?查看安装插件',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?插件详细目录',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?土块更新',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?点歌',
              fnc: 'buttonCenter'
            }
        ]
      }
    }
    async buttonCenter(e){
      const game = (e.game === 'sr' || e.isSr) ? '星铁' : ''
      const list = [
        [
          { label: '土块帮助', callback: `/土块帮助` },
          { label: '绘个图', input: `/绘个图` },
        ],[
          { label: '绘图帮助', callback: `/画图帮助` },
          { label: '土块状态pro', callback: `/土块状态pro` },
        ],[
          { label: 'dau', callback: `/dau` },
          { label: '点歌', input: `/点歌` },
          { label: '听+序号', input: `/听` },
        ]
      ]
      return Bot.Button(list)
    }
  }